{% extends 'base.html' %}
{% block content %}
  <section>
    <h2>编辑配置: config/template_gen_rules.json</h2>
    {% if error %}
      <p style="color:red">{{ error }}</p>
    {% endif %}
    <form method="post">
      <textarea name="content" rows="24" style="width:100%">{{ content }}</textarea>
      <div style="margin-top:8px">
        <button type="submit">保存</button>
      </div>
    </form>
  </section>
{% endblock %}

